<!DOCTYPE html>
<!--声明Thymeleaf语法-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>主页</title>
    <!--引入样式 在resources/static下-->
    <link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>

<body>

<div id="wrap">
    <div id="top_content">
        <div id="header">
            <div id="rightheader">
                <p th:text="${nowDate}">
                    2009/11/20
                    <br/>
                </p>
            </div>
            <div id="topheader">
                <h1 id="title">
                    <a href="index">主页</a>
                </h1>
            </div>
            <div id="navigation">
            </div>
        </div>
        <div id="content">
            <form th:action="@{/file/deployZip}" method="post" enctype="multipart/form-data">
                <table cellpadding="0" cellspacing="0" border="0"
                       class="form_table">
                    <tr>
                        <td valign="middle" align="right">
                            上传文件:
                        </td>
                        <td valign="middle" align="left">
                            <!-- 只展示zip文件 https://blog.csdn.net/qq_29854831/article/details/81073636-->
                            <input type="file" name="file" accept=".zip">
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">
                            解压路径:
                        </td>
                        <td valign="middle" align="left">
                            <!-- Thymeleaf循环显示select标签值 https://blog.csdn.net/weixin_43665676/article/details/123350457-->
                            <select name="path">
                                <option value="">请选择解压路径</option>
                                <option th:each="dict : ${pathList}" th:text="${dict.name}"
                                        th:value="${dict.path}"></option>
                            </select>
                        </td>
                    </tr>
                </table>
                <p>
                    <input type="submit" class="button" value="提交 &raquo;"/>
                </p>
            </form>
        </div>
    </div>
    <div id="footer">
        <div id="footer_bg">
            祝您使用愉快！
        </div>
    </div>
</div>

</body>

</html>